Fix #300218:
authorIvan, Wong Yat Cheung <email@ivanwong.info>
Mon, 11 Apr 2005 18:59:05 +0000 (18:59 +0000)
committerTor Lillqvist <tml@src.gnome.org>
Mon, 11 Apr 2005 18:59:05 +0000 (18:59 +0000)
2005-04-11  Ivan, Wong Yat Cheung  <email@ivanwong.info>

Fix #300218:

* gdk/win32/gdkselection-win32.c (gdk_selection_convert): Fix
C99ism.

* gtk/updateiconcache.c: Guard inclusion of unistd.h and
utime.h.

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-8
gdk/win32/gdkselection-win32.c
gtk/updateiconcache.c

index 25cd9acc658706205bcaff926f31fcff3b86805f..9dad7f746da13105a556cb2813eae5a44742a768 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2005-04-11  Ivan, Wong Yat Cheung  <email@ivanwong.info>
+
+       Fix #300218:
+
+       * gdk/win32/gdkselection-win32.c (gdk_selection_convert): Fix
+       C99ism.
+
+       * gtk/updateiconcache.c: Guard inclusion of unistd.h and
+       utime.h.
+
 2005-04-09  Matthias Clasen  <mclasen@redhat.com>
 
        * gdk/x11/gdkinput-xfree.c:
index 25cd9acc658706205bcaff926f31fcff3b86805f..9dad7f746da13105a556cb2813eae5a44742a768 100644 (file)
@@ -1,3 +1,13 @@
+2005-04-11  Ivan, Wong Yat Cheung  <email@ivanwong.info>
+
+       Fix #300218:
+
+       * gdk/win32/gdkselection-win32.c (gdk_selection_convert): Fix
+       C99ism.
+
+       * gtk/updateiconcache.c: Guard inclusion of unistd.h and
+       utime.h.
+
 2005-04-09  Matthias Clasen  <mclasen@redhat.com>
 
        * gdk/x11/gdkinput-xfree.c:
index 25cd9acc658706205bcaff926f31fcff3b86805f..9dad7f746da13105a556cb2813eae5a44742a768 100644 (file)
@@ -1,3 +1,13 @@
+2005-04-11  Ivan, Wong Yat Cheung  <email@ivanwong.info>
+
+       Fix #300218:
+
+       * gdk/win32/gdkselection-win32.c (gdk_selection_convert): Fix
+       C99ism.
+
+       * gtk/updateiconcache.c: Guard inclusion of unistd.h and
+       utime.h.
+
 2005-04-09  Matthias Clasen  <mclasen@redhat.com>
 
        * gdk/x11/gdkinput-xfree.c:
index d5edb2d08b6bf877f4cb020961b38b7a4643787f..1bcdaa54970d5b8176ab346c53a8eb373873561e 100644 (file)
@@ -383,12 +383,14 @@ gdk_selection_convert (GdkWindow *requestor,
               if (GetClipboardFormatName (fmt, sFormat, 80) > 0 &&
                  strcmp (sFormat, "UTF8_STRING"))
                 {
+                 GdkAtom atom;
+
                  if (!has_bmp &&
                      (!strcmp (sFormat, "image/bmp") ||
                       !strcmp (sFormat, "image/x-bmp") ||
                       !strcmp (sFormat, "image/x-MS-bmp")))
                    has_bmp = TRUE;
-                  GdkAtom atom = gdk_atom_intern (sFormat, FALSE);
+                  atom = gdk_atom_intern (sFormat, FALSE);
                   data[i++] = atom;
                 }
             }
index 8662166659ed56641a25f8e051779435f9ebd69b..17b488d2a0a0b91faf20942e5e8b21c65925873f 100644 (file)
 #include <string.h>
 #include <sys/types.h>
 #include <sys/stat.h>
+#ifdef HAVE_UNISTD_H
 #include <unistd.h>
+#endif
 #include <errno.h>
+#ifdef _MSC_VER
+#include <sys/utime.h>
+#else
 #include <utime.h>
+#endif
 
 #include <glib.h>
 #include <glib/gstdio.h>